var crypto = require('crypto');


var genLoginToken = function(email) {
  var timestamp = new Date().getTime();
  var str = email + '##' + timestamp;
  var md5 = crypto.createHash('md5');
  var token = md5.update(str).digest('base64');
  console.log('token:' + token);
  return token;
};

exports.genLoginToken = genLoginToken;